package ar.uba.fi.algo3.titiritero.vista;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import ar.uba.fi.algo3.titiritero.ControladorJuego;

public class MouseClickController extends MouseAdapter {

    private ControladorJuego controlador;

    public MouseClickController(ControladorJuego unControlador) {
        this.controlador = unControlador;
    }

    public void mouseClicked(MouseEvent e) {
        this.controlador.despacharMouseClick(e.getX(), e.getY());
    }
}
